﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SingleUserMall.Workers
{
    /// <summary>
    /// 安装工人
    /// </summary>
    public class Worker : FullAuditedEntity<long>
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Required,MaxLength(50)]
        public string Name { get; set; }
        /// <summary>
        /// 图片
        /// </summary>
        [MaxLength(100)]
        public string Picture { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required, MaxLength(20)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 安装量
        /// </summary>
        public long Installation { get; set; }
        /// <summary>
        /// 工作年数
        /// </summary>
        public decimal WorkingYear { get; set; }
        /// <summary>
        /// 星级
        /// </summary>
        public int WorkerStar { get; set; }
        /// <summary>
        /// 评论标签（,分割）
        /// </summary>
        public string Tags { get; set; }
    }
}
